package com.DesignPatten.single;

/**
 * @ClassName Holder
 * @Date 2021/7/27 9:14
 * @Author 李明杰
 * @Description 静态内部类实现
 */

public class Holder {
    private Holder() {
    }

    public static Holder getInstance() {
        return InnerClass.HOLDER;
    }

    public static class InnerClass {
        private static final Holder HOLDER = new Holder();
    }

}
